# GENERATED BY: test/directory_option_test.dart

## Section 0
$ pub add --directory=myapp foo
Resolving dependencies in `myapp`...
Downloading packages...
+ foo 1.0.0
Changed 1 dependency in `myapp`!
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 1
$ pub -C myapp add bar
Resolving dependencies in `myapp`...
Downloading packages...
+ bar 1.2.3
Changed 1 dependency in `myapp`!
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 2
$ pub -C 'myapp/example' get --directory=myapp bar
Resolving dependencies in `myapp`...
Downloading packages...
Got dependencies in `myapp`!
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 3
$ pub remove bar -C myapp
Resolving dependencies in `myapp`...
Downloading packages...
These packages are no longer being depended on:
- bar 1.2.3
Changed 1 dependency in `myapp`!
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 4
$ pub get bar -C myapp
Resolving dependencies in `myapp`...
Downloading packages...
Got dependencies in `myapp`!
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 5
$ pub get bar -C 'myapp/example'
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`!

-------------------------------- END OF OUTPUT ---------------------------------

## Section 6
$ pub get bar -C 'myapp/example2'
Resolving dependencies in `myapp/example2`...
[STDERR] Error on line 1, column 9 of myapp/pubspec.yaml: "name" field doesn't match expected name "myapp".
[STDERR]   ╷
[STDERR] 1 │ {"name":"test_pkg","version":"1.0.0","homepage":"https://pub.dev","description":"A package, I guess.","environment":{"sdk":">=3.1.2 <=3.2.0"}, dependencies: {foo: ^1.0.0}}
[STDERR]   │         ^^^^^^^^^^
[STDERR]   ╵
[EXIT CODE] 65

-------------------------------- END OF OUTPUT ---------------------------------

## Section 7
$ pub get bar -C 'myapp/broken_dir'
[STDERR] The directory `myapp/broken_dir` does not exist.
[EXIT CODE] 1

-------------------------------- END OF OUTPUT ---------------------------------

## Section 8
$ pub downgrade -C myapp
Resolving dependencies in `myapp`...
Downloading packages...
No dependencies changed in `myapp`.
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 9
$ pub upgrade bar -C myapp
Resolving dependencies in `myapp`...
Downloading packages...
No dependencies changed in `myapp`.
Resolving dependencies in `myapp/example`...
Downloading packages...
Got dependencies in `myapp/example`.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 10
$ pub run -C myapp 'bin/app.dart'
Building package executable...
Built test_pkg:app.
Hi

-------------------------------- END OF OUTPUT ---------------------------------

## Section 11
$ pub publish -C myapp --dry-run
Resolving dependencies in `myapp`...
Downloading packages...
Got dependencies in `myapp`!
Publishing test_pkg 1.0.0 to http://localhost:$PORT:
├── CHANGELOG.md (<1 KB)
├── LICENSE (<1 KB)
├── README.md (<1 KB)
├── bin
│   └── app.dart (<1 KB)
├── example
│   └── pubspec.yaml (<1 KB)
├── example2
│   └── pubspec.yaml (<1 KB)
├── lib
│   └── test_pkg.dart (<1 KB)
└── pubspec.yaml (<1 KB)

Total compressed archive size: <1 KB.
Validating package...
The server may enforce additional checks.

Package has 0 warnings.

-------------------------------- END OF OUTPUT ---------------------------------

## Section 12
$ pub uploader -C myapp add sigurdm@google.com
[STDERR] Package uploaders are no longer managed from the command line.
[STDERR] Manage uploaders from:
[STDERR] 
[STDERR] https://pub.dev/packages/test_pkg/admin
[EXIT CODE] 1

-------------------------------- END OF OUTPUT ---------------------------------

## Section 13
$ pub deps -C myapp
Dart SDK 3.1.2+3
test_pkg 1.0.0
└── foo 1.0.0

